const path = require("path");
const clean = require("./plugin/clean");
module.exports = {
  //打包模式
  mode: "development",
  //打包入口
  entry: "./src/index.js",
  //打包出口
  output: {
    //路径必须为绝对路径，因此使用path进行拼接
    path: path.resolve(__dirname, "dist"),
    filename: "main.js",
  },
  plugins: [
    new clean({
      msg: "传递的参数",
    }),
  ],
};
